Skip to content

查询用户捐赠单列表

请求参数类型描述
openidstring用户在商户AppID下的唯一标识
brand_idstring品牌ID
queryobject声明请求的查询参数
offsetinteger请求资源起始位置
limitinteger最大资源条数
php
$instance->v3->lovefeast->users->_openid_->orders->brandId->_brand_id_->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'brand_id' => '2250',
  'query' => [
    'offset' => 0,
    'limit'  => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}')->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'brand_id' => '2250',
  'query' => [
    'offset' => 0,
    'limit'  => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}']->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'brand_id' => '2250',
  'query' => [
    'offset' => 0,
    'limit'  => 20,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->lovefeast->users->_openid_->orders->brandId->_brand_id_->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'brand_id' => '2250',
  'query' => [
    'offset' => 0,
    'limit'  => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}')->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'brand_id' => '2250',
  'query' => [
    'offset' => 0,
    'limit'  => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}']->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'brand_id' => '2250',
  'query' => [
    'offset' => 0,
    'limit'  => 20,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
countinteger该次请求返回的记录条数
limitinteger最大记录条数
offsetinteger起始位置
total_countinteger全部记录数量
dataobject[]结果集
welfare_trade_idstring捐赠订单号
appidstring应用ID
sub_appidstring子商户应用ID
brand_idstring品牌ID
donate_sourcestring捐赠来源
MINIPROGRAM_PAY | ENTRUST_PAY 枚举值之一
merchant_orderstring商户订单
institution_namestring捐赠机构名称
business_idstring捐赠项目编号
business_namestring捐赠活动名称
success_timestring支付完成时间
payerobject支付者
openidstring用户标识
sub_openidstring用户子标识
avatarstring用户头像URL
nicknamestring用户昵称
amountobject订单金额
totalnumber总金额
payer_totalnumber用户支付金额
currencystring货币类型
payer_currencystring用户支付币种
device_idstring设备编号

Published on the GitHub by TheNorthMemory